import request from './network.js'

const headers = {'content-type': 'application/x-www-form-urlencoded'};

// 获取小程序access_token
export function getAccessToken(prams, header) {
  return request({
    url: '/cxjOrderwx/getaccessToken',
    headers: header,
    method: 'POST',
    data: prams
  })
}

// 获取用户手机号
export function getPhoneNumber(prams, header) {
  return request({
    url: '/cxjOrderwx/getphone?code='+prams
  })
}

